/*
  类的两中性质
    类型
    构造函数变量(他的类型是构造函数指向的空间的类型(constructor类型))
*/
class CommercialBank {
  public address: string = "beijing";
  public name: string = "wangwu";
  static count: number;

  constructor(name: string, address: string) {
    this.address = address;
    this.name = name;
  }

  loan(): void {
    console.log(this.name + "银行贷款");
  }
}

type ConstructorType = new (...args: any[]) => CommercialBank;
let CommercialBankInstance: ConstructorType = CommercialBank;

const cInstance = new CommercialBankInstance("ww", "tianjin");
console.log(cInstance.address);

export {};
